export default [{
  url: '/vue-admin-template/table/list',
  type: 'get',
  response: config => {
    let query = config.params;
    const data = () => {
      let arr = [];
      for (let i in Array.from({ length: 10 })) {
        arr.push({
          id: '@increment(100)',
          title: '@sentence(10)',
          'status|1': ['published', 'draft', 'deleted'],
          author: '@name',
          display_time: '@datetime',
          pageviews: '@integer(300, 5000)'
        });
      }
      return {
        items: arr
      };
    };
    const items = data().items;
    return {
      code: 20000,
      data: {
        total: 30,
        items: items
      }
    };
  }
}];
